// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'element-ui/lib/theme-chalk/index.css';
import ElementUI from 'element-ui';


import Vue from 'vue';
import App from './App';
import router from './router';
import startQiankun from './micro';


Vue.config.productionTip = false;

Vue.use(ElementUI);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
});

startQiankun(
  {
    sandbox: { // 使用shadowDom的方式来实现样式隔离
      // 或许有未知的坑
      strictStyleIsolation: true,
      experimentalStyleIsolation: true,
    },
  },
);
